﻿<div class="navbar-buttons navbar-header pull-right " role="navigation">
    <ul class="nav ace-nav">
        @if (User.Identity.IsAuthenticated)
        {
            <li class="light-blue">
                <a data-toggle="dropdown" href="javascript:" class="dropdown-toggle">
                    <img class="nav-user-photo" src="@Url.RouteUrl("avatar")" onerror="this.src = '/Content/ace/assets/avatars/user.jpg'" alt="" />
                    <span class="user-info">
                        <small>@(User.Identity.Name)</small>@WorkContext.CurrentUser.Name
                    </span>
                    <i class="ace-icon fa fa-caret-down"></i>
                </a>
                <ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                    <li>
                        <a href="@Url.RouteUrl("profileIndex")">
                            <i class="ace-icon fa fa-user"></i>
                            个人
                        </a>
                    </li>
                    <li class="divider"></li>
                    <li>
                        <a href="@Url.RouteUrl("signOut")">
                            <i class="ace-icon fa fa-power-off"></i>
                            退出
                        </a>
                    </li>
                </ul>
            </li>
        }
    </ul>
</div>